 #define  _CRT_SECURE_NO_WARNINGS 1
using namespace std;
#include<string>
#include<iostream>
#include"string.h"
using namespace Zhj;

void test1()
{

	String s1="hello world";
	String s2=s1;
	for (auto &ch : s1)
	{
		ch = 'x';
	}
	char ch = s1[5];
    cout <<ch;
	//s2 = s1;
	

	//std::string s1 = "hello world";
	//std::string s2;
	//s2 = s1;

}

void test2()
{
	String s1 = "hello world";
	s1.resize(3);
	cout << s1;

}

void test3()
{
	String s1 = "hello bit";
	s1.insert(5, "world");
	cout << s1;
}
void test4()
{
	String s1 = "hello";
	s1.erase(0, 2);
	cout << s1 << endl;
}
int main()
{
	//test3();
	test4();
	return 0;
}